package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.vo.AttrRelationVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author dy
 * @email 1091330089@qq.com
 * @date 2022-08-11 11:06:25
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    //获取属性分组 所关联的全部属性。
    List<AttrEntity> getRelationAttr(Long attrGroupId);

    //删除属性与分组 的关联关系
    void deleteAttrAttrgroup(List<AttrAttrgroupRelationEntity> attrAttrgroup);

    void addAttrRelation(List<AttrRelationVo> attrRelationVos);

}

